package com.qdu.common.utils.id;

/**
 * 获取ID工具类 饿汉式
 */
public class IdUtil {
    private static final IdWorker idWorker = new IdWorker();

    private IdUtil(){
        super();
    }

    /**
     * 获得id
     * @return
     */
    public static Long getId(){
        return idWorker.nextId();
    }

}
